<link href="/css/bootstrap.min.css" rel="stylesheet"/>  
<?php 
  $list = $this->data;
  foreach ($list as $key => $value) {
  	$name = $value['name'];
  	$description = $value['description'];
  	$id = $value['id'];
  }
?>
<script type="text/javascript">
     $(document).ready( function()
	      {
		    	 $("#edit_menu").click(function()
		    			 {
		    	    	 name = $("#name").val();
		    	         if(name == "") alert("Không được để trống ô Name");
		    	  )
	      });
</script>
<div id='formedit'>
<form id="form1" name="form1" method="post" action="">
  <table width="800" border="0">
    <tr>
      <td width="115" height="45" style="font-weight: bold;">Tên thể loại phim: </td>
      <td width="263"><label>
        <input name="name" type="text" id="name"  size="30" value="<?php echo $name; ?>"/>
      </label></td>
    </tr><tr>
      <td width="121" style="font-weight: bold;">Mô tả: </td>
      <td width="283"><input name="description" type="text" id="description"  size="30" value="<?php echo $description; ?>"/></td>
      <td><input type="submit" class="btn btn-primary" name="submit" value="EDIT" id="edit_menu" /></td>
    </tr>
  </table>
  <label></label>
  <input type="hidden" id="temp" name="id" value="<?php echo $id; ?> "/>
</form>
</div>